package org.example.springboot3.mapper;

import org.apache.ibatis.annotations.Select;
import org.example.springboot3.entity.Employee;

import java.util.List;

public interface EmployeeMapper {
    List<Employee> selectAll( Employee employee);

    @Select("select * from `employee` where id = #{id}")
    Employee selectById(Integer id);

    @Select("select * from `employee` where username = #{username}")
    Employee selectByUsername(String username);

    void insert(Employee employee);

    void updataById(Employee employee);

    //@Delete("delete from `employee` where id = #{id}")
    void deleteById(Integer id);


}
